package com.macro.mall.portal.repository;

import com.macro.mall.portal.domain.MongoProduct;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface MongoProductRepository extends MongoRepository<MongoProduct, String> {
    List<MongoProduct> findByName(String name);

    List<MongoProduct> findByCategory(String Category);
    List<MongoProduct> deleteByName(String name);

}
